#!/usr/bin/python
# Copyright 2011, Kitware, Inc.

"""Prints the time according to libc and exits. This example will only work on
a platform that has libc.so.6 in the lib path."""

from ctypes import cdll, CDLL

# The name of our library
library_name = 'libc.so.6'

# Load the library as a module
cdll.LoadLibrary(library_name)
libc = CDLL(library_name)

# Call the standard time function and print the results
print libc.time(None)
